.studentManagement {
  padding: 20px;
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pageHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.headerActions {
  display: flex;
  gap: 10px;
}

.btnPrimary {
  background-color: #1890ff;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btnPrimary:hover {
  background-color: #40a9ff;
}

.btnSecondary {
  background-color: #f5f5f5;
  color: #333;
  border: 1px solid #d9d9d9;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
}

.btnSecondary:hover {
  background-color: #e6f7ff;
  border-color: #1890ff;
}

.btnDanger {
  background-color: #ff4d4f;
  color: white;
  border: 1px solid #ff4d4f;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 14px;
  font-weight: 500;
}

.btnDanger:hover {
  background-color: #ff7875;
  border-color: #ff7875;
  box-shadow: 0 2px 4px rgba(255, 77, 79, 0.3);
}

.btnDanger:active {
  background-color: #cf1322;
  border-color: #cf1322;
}

/* 搜索区域样式 */
.searchSection {
  background: white;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 20px;
  width: 100%;
}

.searchTitle {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
  text-align: center;
}

.searchRow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 16px;
  align-items: end;
}

.searchRow:last-of-type {
  grid-template-columns: repeat(5, 1fr) auto;
}

.searchGroup {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.searchGroup label {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.searchGroup input,
.searchGroup select {
  padding: 8px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.3s;
  background: white;
}

.searchGroup input:focus,
.searchGroup select:focus {
  outline: none;
  border-color: #1890ff;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.searchGroup input::placeholder {
  color: #bfbfbf;
}

.searchGroup select {
  cursor: pointer;
  appearance: none; /* 隐藏浏览器原生下拉箭头 */
  -webkit-appearance: none; /* Safari */
  -moz-appearance: none; /* Firefox */
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 40px;
}


.searchSection {
  background: white;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 20px;
  max-width: 1200px;
  margin-left:-50;
  margin-right: auto;
}

.searchTitle {
  display: none;
}

.searchRow {
  display: grid;
  grid-template-columns: repeat(5, 1fr) auto;
  gap: 16px;
  margin-bottom: 16px;
  align-items: end;
}

.searchGroup {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.searchGroup label {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.searchGroup input,
.searchGroup select {
  padding: 8px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.3s;
  background: white;
}

.searchGroup input:focus,
.searchGroup select:focus {
  outline: none;
  border-color: #1890ff;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.searchGroup input::placeholder {
  color: #bfbfbf;
}

.keywordSearch {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.keywordSearch input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.tagSearch {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.tagSelector select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
  font-size: 14px;
  min-width: 150px;
}

.searchTags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.searchTag {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 14px;
}

.tagLabel {
  font-weight: 500;
  color: #495057;
  white-space: nowrap;
}

.searchTag input,
.searchTag select {
  border: none;
  background: transparent;
  outline: none;
  min-width: 120px;
  font-size: 14px;
}

.removeTag {
  background: none;
  border: none;
  color: #6c757d;
  cursor: pointer;
  font-size: 16px;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.removeTag:hover {
  background: #f8f9fa;
  color: #dc3545;
}

.searchActions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 0;
}

.btnClear {
  padding: 10px 24px;
  background: #6c757d;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s;
}

.btnClear:hover {
  background: #5a6268;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

.studentTableContainer {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.studentTable {
  overflow-x: auto;
}

.studentTable table {
  width: 100%;
  border-collapse: collapse;
}

.studentTable th,
.studentTable td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
  white-space: nowrap;
}

.studentTable th {
  background-color: #fafafa;
  font-weight: 600;
  color: #333;
}

.studentId {
  font-weight: 600;
  color: #1890ff;
}

.nameCell {
  font-weight: 500;
}

.idCardCell {
  font-family: monospace;
}

.status {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.statusActive {
  background-color: #f6ffed;
  color: #52c41a;
  border: 1px solid #b7eb8f;
}

.statusSuspended {
  background-color: #fff2e8;
  color: #fa541c;
  border: 1px solid #ffbb96;
}

.statusGraduated {
  background-color: #f0f5ff;
  color: #2f54eb;
  border: 1px solid #adc6ff;
}

.actionButtons {
  display: flex;
  gap: 8px;
}


.btnComment {
  background-color: #17a2b8;
  color: white;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

.btnComment:hover {
  background-color: #138496;
}

.btnDelete {
  background-color: #ff4d4f;
  color: white;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

.btnDelete:hover {
  background-color: #ff7875;
}

/* 分页样式 */
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-top: 1px solid #f0f0f0;
  background-color: #fafafa;
}

.paginationControls {
  display: flex;
  gap: 8px;
}

.paginationControls button {
  padding: 6px 12px;
  border: 1px solid #d9d9d9;
  background: white;
  border-radius: 4px;
  cursor: pointer;
}

.paginationControls button:disabled {
  color: #ccc;
  cursor: not-allowed;
}

.paginationControls button.active {
  background-color: #1890ff;
  color: white;
  border-color: #1890ff;
}

.pageSizeSelector select {
  padding: 6px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
}

/* 模态框样式 */
.modalOverlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal {
  background: white;
  border-radius: 8px;
  width: 600px;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
}

.largeModal {
  width: 800px;
}

.modalHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid #f0f0f0;
}

.closeBtn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #999;
}

.closeBtn:hover {
  color: #666;
}

.modal form {
  padding: 24px;
}

.formRow {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.formGroup {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.formGroup label {
  margin-bottom: 4px;
  font-weight: 500;
  color: #333;
}

.formGroup input,
.formGroup select {
  padding: 8px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  appearance: none; /* 隐藏浏览器原生下拉箭头 */
  -webkit-appearance: none; /* Safari */
  -moz-appearance: none; /* Firefox */
}

.formGroup input:focus,
.formGroup select:focus {
  outline: none;
  border-color: #1890ff;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

/* 表单行样式 */
.formRow {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

/* 评语相关样式 */
.commentContent {
  background-color: #f8f9fa;
  padding: 12px;
  border-radius: 4px;
  border-left: 4px solid #17a2b8;
  margin-top: 8px;
  line-height: 1.5;
}

.emptyComments {
  text-align: center;
  padding: 32px;
  color: #999;
  font-style: italic;
  border: 2px dashed #ddd;
  border-radius: 4px;
  margin: 16px 0;
}
.modalActions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}

/* 空状态样式 */
.emptyState {
  text-align: center;
  padding: 40px;
  color: #999;
}

.emptyState .icon {
  font-size: 48px;
  margin-bottom: 16px;
}

/* 错误和加载状态 */
.errorMessage {
  background-color: #fff2f0;
  border: 1px solid #ffccc7;
  color: #a8071a;
  padding: 12px;
  border-radius: 4px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.loadingState {
  text-align: center;
  padding: 20px;
  color: #999;
}

/* 导入模态框特定样式 */
.importModal {
  width: 500px;
}

.importInstructions {
  background-color: #f6ffed;
  border: 1px solid #b7eb8f;
  border-radius: 4px;
  padding: 16px;
  margin-bottom: 16px;
}

.importInstructions h4 {
  margin: 0 0 8px 0;
  color: #389e0d;
}

.importInstructions ul {
  margin: 0;
  padding-left: 20px;
}

.importInstructions li {
  margin-bottom: 4px;
}

.templateFormat {
  margin-bottom: 16px;
  padding: 0 16px;
}

.btnLink {
  background: none;
  border: none;
  color: #007bff;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.btnLink:hover {
  color: #0056b3;
}

.fileInfo {
  margin-top: 8px;
  padding: 8px;
  background: #f8f9fa;
  border-radius: 4px;
  font-size: 14px;
}

.importResult {
  padding: 16px;
  border-radius: 4px;
  margin: 16px 0;
}

.importResult.success {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.importResult.error {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.importDetails {
  margin-top: 12px;
  max-height: 200px;
  overflow-y: auto;
}

.detailItem {
  display: flex;
  justify-content: space-between;
  padding: 8px;
  margin-bottom: 4px;
  border-radius: 4px;
  font-size: 14px;
}

.detailItem.success {
  background-color: #d1edff;
}

.detailItem.failed {
  background-color: #ffeaea;
}

/* 评语模态框样式 */
.studentInfoSection {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
}

.studentInfoSection h4 {
  margin: 0 0 10px 0;
  color: #333;
}

.infoGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.infoItem {
  display: flex;
  align-items: center;
}

.infoItem label {
  font-weight: bold;
  margin-right: 8px;
  min-width: 60px;
}

.infoItem span {
  color: #666;
}

.commentsSection {
  margin-top: 20px;
  padding: 0 24px 24px;
}

.sectionHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.sectionHeader h4 {
  margin: 0;
}

.commentForm {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
}

.commentForm .formRow {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.commentForm .fullWidth {
  grid-column: 1 / -1;
}

.commentForm textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 3px;
  resize: vertical;
}

.formActions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}

.commentsList {
  max-height: 400px;
  overflow-y: auto;
}

.commentItem {
  border: 1px solid #e9ecef;
  border-radius: 5px;
  padding: 15px;
  margin-bottom: 10px;
  background: white;
}

.commentHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.commentStage {
  font-weight: bold;
  color: #007bff;
  font-size: 16px;
}

.commentMeta {
  display: flex;
  gap: 15px;
  color: #666;
  font-size: 14px;
}

.commentContent {
  line-height: 1.5;
  color: #333;
}

.emptyComments {
  text-align: center;
  color: #999;
  padding: 40px;
  font-style: italic;
}

.btnDeleteSmall {
  padding: 2px 6px;
  font-size: 12px;
  background-color: #ff4d4f;
  color: white;
  border: none;
  border-radius: 3px;
  cursor: pointer;
}

.btnDeleteSmall:hover {
  background-color: #ff7875;
}


/* 错误提示文本样式 */
.errorText {
  color: #ff4d4f;
  font-size: 12px;
  margin-top: 4px;
  line-height: 1.4;
}

/* 按钮样式增强 */
.btnPrimary {
  background: linear-gradient(135deg, #1890ff 0%, #40a9ff 100%);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s;
  box-shadow: 0 2px 4px rgba(24, 144, 255, 0.2);
}

.btnPrimary:hover {
  background: linear-gradient(135deg, #40a9ff 0%, #69c0ff 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(24, 144, 255, 0.3);
}

.btnPrimary:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(24, 144, 255, 0.2);
}

.btnSecondary {
  background: white;
  color: #1890ff;
  border: 1px solid #1890ff;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s;
}

.btnSecondary:hover {
  background: #f0f5ff;
  border-color: #40a9ff;
  color: #40a9ff;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(24, 144, 255, 0.15);
}

.btnCancel {
  background: #f5f5f5;
  color: #666;
  border: 1px solid #d9d9d9;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s;
}

.btnCancel:hover {
  background: #e6e6e6;
  border-color: #bfbfbf;
  color: #333;
}

/* 操作按钮样式 */
.actionButtons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}


.btnComment {
  background: linear-gradient(135deg, #17a2b8 0%, #20c997 100%);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.3s;
  box-shadow: 0 1px 3px rgba(23, 162, 184, 0.3);
}

.btnComment:hover {
  background: linear-gradient(135deg, #20c997 0%, #38d9a9 100%);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(23, 162, 184, 0.4);
}

.btnEdit {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.3s;
  box-shadow: 0 1px 3px rgba(245, 158, 11, 0.3);
}

.btnEdit:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.4);
}

.btnDelete {
  background: linear-gradient(135deg, #ff4d4f 0%, #ff7875 100%);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.3s;
  box-shadow: 0 1px 3px rgba(255, 77, 79, 0.3);
}

.btnDelete:hover {
  background: linear-gradient(135deg, #ff7875 0%, #ffa39e 100%);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(255, 77, 79, 0.4);
}

/* 模态框样式增强 */
.modalOverlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease-out;
}

.modal {
  background: white;
  border-radius: 12px;
  width: 600px;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  animation: slideIn 0.3s ease-out;
}

.largeModal {
  width: 900px;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modalHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
  border-radius: 12px 12px 0 0;
  position: relative;
}

.modalHeader::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  border-radius: 12px 12px 0 0;
}

.modalHeader h3 {
  margin: 0;
  color: #1f2937;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
}

.modalIcon {
  font-size: 18px;
  color: #10b981;
  background: #f0fdf4;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.closeBtn {
  background: #f3f4f6;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #6b7280;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-weight: 600;
}

.closeBtn:hover {
  color: #374151;
  background: #e5e7eb;
  transform: scale(1.05);
}

/* 学生表单样式 */
.studentForm {
  padding: 32px;
  background: #ffffff;
  border-radius: 8px;
}

.formSection {
  margin-bottom: 32px;
}

.formSectionTitle {
  font-size: 16px;
  font-weight: 700;
  color: #3b82f6;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e5e7eb;
  position: relative;
}

.formSectionTitle::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background: #3b82f6;
  border-radius: 1px;
}

.formRow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
  align-items: start;
}

.formGroup {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.formGroup.required label::after {
  content: ' *';
  color: #ff4d4f;
  font-weight: 600;
}

.formGroup label {
  font-weight: 600;
  color: #1f2937;
  font-size: 14px;
  margin-bottom: 4px;
}

.formGroup input,
.formGroup select,
.formGroup textarea {
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.2s ease;
  background: #ffffff;
  color: #374151;
}

.formGroup input:focus,
.formGroup select:focus,
.formGroup textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.formGroup input::placeholder,
.formGroup select::placeholder,
.formGroup textarea::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

.formGroup select {
  cursor: pointer;
  appearance: none; /* 隐藏浏览器原生下拉箭头 */
  -webkit-appearance: none; /* Safari */
  -moz-appearance: none; /* Firefox */
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 40px;
}

.error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.errorText {
  color: #ef4444;
  font-size: 12px;
  margin-top: 4px;
  line-height: 1.4;
}

.modalActions {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 32px;
  padding: 24px 32px;
  background: #f9fafb;
  border-radius: 0 0 12px 12px;
  border-top: 1px solid #e5e7eb;
}

.btnPrimary {
  background: #3b82f6;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btnPrimary:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btnPrimary:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btnSecondary {
  background: #ffffff;
  color: #6b7280;
  border: 1px solid #d1d5db;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btnSecondary:hover {
  background: #f9fafb;
  border-color: #9ca3af;
  color: #374151;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btnCancel {
  background: #f5f5f5;
  color: #666;
  border: 1px solid #d9d9d9;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s;
}

.btnCancel:hover {
  background: #e6e6e6;
  border-color: #bfbfbf;
  color: #333;
}

/* 导入模态框样式 */
.importModal {
  width: 500px;
}

.importInstructions {
  background: linear-gradient(135deg, #f6ffed 0%, #f0f9ff 100%);
  border: 1px solid #b7eb8f;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.importInstructions h4 {
  margin: 0 0 12px 0;
  color: #389e0d;
  font-size: 16px;
  font-weight: 600;
}

.importInstructions ul {
  margin: 0;
  padding-left: 20px;
}

.importInstructions li {
  margin-bottom: 6px;
  color: #52c41a;
  font-size: 14px;
}

.templateFormat {
  margin-bottom: 20px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btnLink {
  background: none;
  border: none;
  color: #1890ff;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  font-size: 14px;
  transition: color 0.3s;
}

.btnLink:hover {
  color: #40a9ff;
}

.fileInfo {
  margin-top: 12px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 6px;
  font-size: 14px;
  color: #666;
  border: 1px solid #e9ecef;
}

.importResult {
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
}

.importResult.success {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  border: 1px solid #c3e6cb;
  color: #155724;
}

.importResult.error {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.importDetails {
  margin-top: 16px;
  max-height: 200px;
  overflow-y: auto;
}

.detailItem {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  margin-bottom: 6px;
  border-radius: 6px;
  font-size: 14px;
}

.detailItem.success {
  background: #d1edff;
  border: 1px solid #91d5ff;
}

.detailItem.failed {
  background: #ffeaea;
  border: 1px solid #ffb3ba;
}

/* 评语模态框样式 */
.studentInfoSection {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 24px;
  border: 1px solid #e9ecef;
}

.studentInfoSection h4 {
  margin: 0 0 16px 0;
  color: #333;
  font-size: 16px;
  font-weight: 600;
}

.infoGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.infoItem {
  display: flex;
  align-items: center;
  padding: 8px 0;
}

.infoItem label {
  font-weight: 600;
  margin-right: 8px;
  min-width: 80px;
  color: #666;
  font-size: 14px;
}

.infoItem span {
  color: #333;
  font-size: 14px;
}

.commentsSection {
  margin-top: 24px;
  padding: 0 24px 24px;
}

.sectionHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.sectionHeader h4 {
  margin: 0;
  color: #333;
  font-size: 16px;
  font-weight: 600;
}

.commentForm {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 24px;
  border: 1px solid #e9ecef;
}

.commentForm .formRow {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.commentForm .fullWidth {
  grid-column: 1 / -1;
}

.commentForm textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  resize: vertical;
  font-size: 14px;
  transition: all 0.3s;
}

.commentForm textarea:focus {
  outline: none;
  border-color: #1890ff;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.formActions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 16px;
}

.commentsList {
  max-height: 400px;
  overflow-y: auto;
}

.commentItem {
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 16px;
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
}

.commentItem:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.commentHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.commentStage {
  font-weight: 600;
  color: #1890ff;
  font-size: 16px;
  background: linear-gradient(135deg, #e6f7ff 0%, #bae7ff 100%);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid #91d5ff;
}

.commentMeta {
  display: flex;
  gap: 16px;
  color: #666;
  font-size: 14px;
}

.commentContent {
  line-height: 1.6;
  color: #333;
  font-size: 14px;
  background: #fafafa;
  padding: 12px;
  border-radius: 6px;
  border-left: 4px solid #1890ff;
}

.emptyComments {
  text-align: center;
  color: #999;
  padding: 40px;
  font-style: italic;
  background: #fafafa;
  border: 2px dashed #d9d9d9;
  border-radius: 8px;
  margin: 16px 0;
}

.btnDeleteSmall {
  padding: 4px 8px;
  font-size: 12px;
  background: linear-gradient(135deg, #ff4d4f 0%, #ff7875 100%);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 1px 3px rgba(255, 77, 79, 0.3);
}

.btnDeleteSmall:hover {
  background: linear-gradient(135deg, #ff7875 0%, #ffa39e 100%);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(255, 77, 79, 0.4);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .pageHeader {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  
  .headerActions {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .formRow {
    flex-direction: column;
    gap: 12px;
  }

  .searchRow {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .searchActions {
    flex-direction: column;
    align-items: center;
  }

  .btnSearch,
  .btnClear {
    width: 100%;
    max-width: 200px;
  }

  .actionButtons {
    flex-direction: column;
    gap: 4px;
  }

  .searchRow {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .searchRow:last-of-type {
    grid-template-columns: 1fr;
  }

  .searchActions {
    flex-direction: column;
    align-items: center;
  }

  .btnSearch,
  .btnClear {
    width: 100%;
    max-width: 200px;
  }

  .btnComment,
  .btnDelete {
    width: 100%;
    text-align: center;
  }

  .modal {
    width: 95vw;
    margin: 20px;
  }

  .largeModal {
    width: 95vw;
  }

  .commentForm .formRow {
    grid-template-columns: 1fr;
  }

  .infoGrid {
    grid-template-columns: 1fr;
  }

  .commentMeta {
    flex-direction: column;
    gap: 4px;
  }
}

@media (max-width: 480px) {
  .studentManagement {
    padding: 10px;
  }

  .searchSection {
    padding: 16px;
  }

  .modal {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    max-height: 100vh;
  }

  .largeModal {
    width: 100vw;
    height: 100vh;
  }
}